package com.mark.web.sys.entity.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 用户头像POJO类
 * @Author: Mark
 * @CreateDate: 2019/1/13 15:17
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
@ApiModel(value = "部门更新表单")
public class DeptUpdateFrom {
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "部门id")
    private Integer id;

    /**
     * 部门的直接上级的部门ID
     */
    @ApiModelProperty(value = "上级部门ID",required = true)
    private Integer parentId;

    /**
     * 逻辑外键，关联用户表，部门负责人
     */
    @ApiModelProperty(value = "部门负责人",required = true)
    private Integer leaderId;

    /**
     * 部门编号
     */
    @ApiModelProperty(value = "部门编号",required = true)
    @NotBlank
    private String number;

    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称",required = true)
    @NotBlank
    private String name;

    /**
     * 部门层级
     */
    @ApiModelProperty(value = "部门层级",required = true)
    private Short deptLevel;
}
